package top.abrsm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName ("area_info")
public class AreaEntity extends BaseEntity {

    @TableId (value = "id", type = IdType.INPUT)
    private String id;
    @TableField ("areaName")
    private String areaName;
    @TableField ("parentId")
    private String parentId;
    @TableField (exist = false)
    private String parentAreaName;

    @TableField ("level")
    private Integer level;
    @TableField ("createTime")
    private Date createTime;
    @TableField ("changeTime")
    private Date changeTime;
    @TableField ("isUsed")
    private Integer isUsed;

    public String getId () {
        return id;
    }

    public void setId (String id) {
        this.id = id;
    }

    public String getAreaName () {
        return areaName;
    }

    public void setAreaName (String areaName) {
        this.areaName = areaName;
    }

    public String getParentId () {
        return parentId;
    }

    public void setParentId (String parentId) {
        this.parentId = parentId;
    }

    public String getParentAreaName () {
        return parentAreaName;
    }

    public void setParentAreaName (String parentAreaName) {
        this.parentAreaName = parentAreaName;
    }

    public Integer getLevel () {
        return level;
    }

    public void setLevel (Integer level) {
        this.level = level;
    }

    public Date getCreateTime () {
        return createTime;
    }

    public void setCreateTime (Date createTime) {
        this.createTime = createTime;
    }

    public Date getChangeTime () {
        return changeTime;
    }

    public void setChangeTime (Date changeTime) {
        this.changeTime = changeTime;
    }

    public Integer getIsUsed () {
        return isUsed;
    }

    public void setIsUsed (Integer isUsed) {
        this.isUsed = isUsed;
    }
}
